package com.ruoyi.platform.system.user.pojo.role;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户和角色关联表
 *
 * @author lcf
 * @version 0.0.1
 * @since 2020-11-16 10:36:34
 */
@Data
@NoArgsConstructor
public class UserRoleDO {
    /**
     * id
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 查询
     */
    public UserRoleDO(long userId) {
        this.userId = userId;
    }

    /**
     * 新增
     */
    public UserRoleDO(long userId, long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}
